package foodmaterial.dao;

import foodmaterial.dto.ProcessBillDto;
import foodmaterial.dto.ProductionLineDto;
import foodmaterial.dto.PurchasePlanDto;
import foodmaterial.dto.StockBillDto;
import foodmaterial.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StockDao {

    int insertStockBill(StockBill stockBill) ;

    int updateStockBill(StockBill stockBill) ;

    int insertStockBillDetail(List<StockBillDetail> stockBillDetail) ;

    int deleteStockBillDetail(Long billId) ;

    StockBill selectModifyBill(Long billId) ;

    List<StockBill> selectStockBill(StockBillDto dto) ;

    List<StockBillDetail> selectStockBillDetail(Long billId) ;

    List<StockBill> selectPrintStockBill(List<Long> billIds) ;

    int insertProductionLine(ProductionLine productionLine);

    int updateProductionLine(ProductionLine productionLine) ;

    List<ProductionLine> selectProductionLine(ProductionLineDto dto) ;

    int insertProcessBill(ProcessBill processBill) ;

    int updateProcessBill(ProcessBill processBill) ;

    int insertProcessBillDetail(List<ProcessBillDetail> details) ;

    int deleteProcessBillDetail(Long processBillId) ;

    ProcessBill selectModifyProcessBill(Long id) ;

    List<ProcessBill> selectProcessBill(ProcessBillDto dto) ;

    List<ProcessBillDetail> selectProcessBillDetail(Long processBillId) ;

    List<ProcessBillDetail> selectTotalProcess(ProcessBillDto dto) ;

    List<ProcessBill> selectPrintProcessBill(List<Long> billIds) ;

    List<ProcessBillDetail> selectProcessPlan(PurchasePlanDto dto) ;

}
